from task.pageAction.actionmanage import ActionManage
class CartAction(ActionManage):

    def business_add_cart(self):
        self.pagehome.scroll()
        self.pagehome.click_goods()
        self.pagehome.switch_window()
        self.pagegoods.choose_color()
        self.pagegoods.choose_size()
        self.pagegoods.click_add_Cart()



    def business_delete_cart(self):
        self.business_add_cart()
        self.pagegoods.click_right_cart()
        self.pagecart.click_delete()
        self.pagecart.click_confirm()
